#ifndef DBARGS_H
#define DBARGS_H

#include <QDialog>
#include <QSqlDatabase>
#include "dbadapter.h"
#include "ui_dbargs.h"

class dbargs : public QDialog
{
	Q_OBJECT

public:
	dbargs(QWidget *parent = 0, QSqlDatabase *_db = NULL);
	~dbargs();

public:
	Ui::dbargsClass ui;
	QSqlDatabase *db;
	int dbnum;
	QString mysqlDbname[2][2];

private slots:
	void connectToDb();
	void sqliteFileDialog();
	void sqlite(bool state);
	void mysql(bool state);
	//TODO - when changing disciplines change semestrs accordingly
};

#endif // DBARGS_H
